#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
main()
{
	int arr[10] = { 0 };
	int kit[5] = { 1,2,3,4,5 };
	memmove(arr, kit, sizeof(kit));
	int i = 0;
	for (i = 0; i < 9; i++)
	{
		printf("%d ",arr[i]);
	}
	return 0;
}


oid merge(int* nums1, int nums1Size, int m, int* nums2, int nums2Size, int n) {
    int p1 = m - 1, p2 = n - 1;
    int tail = m + n - 1;
    int cur;
    while (p1 >= 0 || p2 >= 0) {
        if (p1 == -1) {
            cur = nums2[p2--];
        }
        else if (p2 == -1) {
            cur = nums1[p1--];
        }
        else if (nums1[p1] > nums2[p2]) {
            cur = nums1[p1--];
        }
        else {
            cur = nums2[p2--];
        }
        nums1[tail--] = cur;
    }
}

